.navbar {
    border-radius: 10px;
    background-color: #343a40;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    transition: all 0.3s ease-in-out;
}

.navbar:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 增加一些 padding 和 margin 让内容不那么拥挤 */
.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
    color: #ffffff;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #2980b9;
}

/* 菜单项样式 */
.navbar-nav .nav-item .nav-link {
    color: #ffffff;
    font-weight: 500;
    padding: 12px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item .nav-link:focus {
    color: #ffffff;
    background-color: #2980b9;
    border-radius: 5px;
}

.navbar-nav .nav-item.active .nav-link {
    color: #fff;
    background-color: #2980b9;
    border-radius: 5px;
}

/* 用户信息和退出登录 */
.navbar-nav.ms-auto .nav-link {
    color: #ffffff;
    font-weight: 500;
    padding: 12px 20px;
}

.navbar-nav.ms-auto .nav-link:hover {
    background-color: #2ecc71;
    color: #fff;
    border-radius: 5px;
}

/* 自适应 */
@media (max-width: 768px) {
    .navbar-collapse {
        margin-top: 10px;
    }
}